home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / events / ModuleEvent.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  52 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.ProgressEvent;
  5.    import mx.core.mx_internal;
  6.    import mx.modules.IModuleInfo;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class ModuleEvent extends ProgressEvent
  11.    {
  12.       
  13.       public static const READY:String = "ready";
  14.       
  15.       public static const ERROR:String = "error";
  16.       
  17.       public static const PROGRESS:String = "progress";
  18.       
  19.       mx_internal static const VERSION:String = "3.0.0.0";
  20.       
  21.       public static const SETUP:String = "setup";
  22.       
  23.       public static const UNLOAD:String = "unload";
  24.        
  25.       
  26.       public var errorText:String;
  27.       
  28.       private var _module:IModuleInfo;
  29.       
  30.       public function ModuleEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:uint = 0, param5:uint = 0, param6:String = null, param7:IModuleInfo = null)
  31.       {
  32.          super(param1,param2,param3,param4,param5);
  33.          this.errorText = param6;
  34.          this._module = param7;
  35.       }
  36.       
  37.       public function get module() : IModuleInfo
  38.       {
  39.          if(_module)
  40.          {
  41.             return _module;
  42.          }
  43.          return target as IModuleInfo;
  44.       }
  45.       
  46.       override public function clone() : Event
  47.       {
  48.          return new ModuleEvent(type,bubbles,cancelable,bytesLoaded,bytesTotal,errorText,module);
  49.       }
  50.    }
  51. }
  52.